package com.qdsg.modulesihealsdk.entity;

import com.siheal.entitys.measure.BodyFatEntity;

/**
 * @Description
 * @Author WuJianFeng
 * @Date 2022/12/9 17:41
 */
public class BodyFatResultEntity extends BaseMeasureEntity {
    private BodyFatEntity bodyFatEntity;

    public BodyFatResultEntity(BodyFatEntity bodyFatEntity){
        this.bodyFatEntity = bodyFatEntity;
    }
    public BodyFatEntity getBodyFatEntity() {
        return bodyFatEntity;
    }

    public void setBodyFatEntity(BodyFatEntity bodyFatEntity) {
        this.bodyFatEntity = bodyFatEntity;
    }

    @Override
    public String getDetectResult(){

        if (bodyFatEntity == null){
            return "";
        }
        //"体脂肪含量|基础代谢|体水含量|体型|身高|体重|BMI"
        return bodyFatEntity.getFat()+"|"+
                bodyFatEntity.getBaseMetabolismValue()+"|"+
                bodyFatEntity.getWaterMass()+"|"+
                ""+"|"+
                bodyFatEntity.getHeight()+"|"+
                bodyFatEntity.getWeight()+"|"+
                bodyFatEntity.getBmi();
    }
}
